#include "locations/corridor.hh"
#include "characters/enemies/StatueEnemy.hh"
#include "items/item.hh"
#include "locations/location.hh"
#include "characters/enemies/MuralEnemy.hh"

#include <string>


Corridor::Corridor(){}

std::string Corridor::getName() const {
    return "Corridor";
}

std::string Corridor::getDescription() const {
    return "A passage connecting rooms, with conscious murals and statues.";
}

std::string Corridor::when_enter(){
    return "You entered the corridor.";
}

Player& Corridor::in(Player& a){
    std::cout << "You sense movement from the walls and shadows...\n";
    bool no_winner=true;
    MuralEnemy mural;
    StatueEnemy sta;
    int e=rand()%4+1;

    if(e==1||e==2){
        std::cout<<"Attention! You meet MuralEnemy"<<std::endl;
        a.combatLoop(&mural);
    }else if(e==3){
        std::cout<<"Attention! You meet StatueEnemy"<<std::endl;
        a.combatLoop(&sta);
    }
    return a;
}

std::string Corridor::when_exit() const {
    return "You exited the corridor.";
}
